package com.hnkywl.sts.entity.xtgl;

import com.hnkywl.sts.entity.BaseEntity;
import com.hnkywl.sts.entity.base.Fwpz;
import com.hnkywl.sts.entity.sys.Yg;
import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;
import org.hibernate.annotations.Where;

import javax.persistence.*;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 13-5-8
 * Time: 下午3:34
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name="T_SYS_CZRZ")
@Where(clause = "deleted!='1'")
public class Czrz extends BaseEntity {
    @Id
    @SequenceGenerator(name = "seqCzrz", allocationSize = 1, sequenceName = "SEQ_SYS_CZRZ")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqCzrz")
    private Long id;

    /**
     * 用户
     */
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name="YH_ID")
    @NotFound(action= NotFoundAction.IGNORE)
    private Yg yh;

    /**
     * 操作日期
     */
    private Date czrq;

    /**
     * 登陆IP
     */
    private String dlip;

    /**
     * 登录MAC地址
     */
    private String dlmac;

    /**
     * 操作内容
     */
    private String cznr;
    /**
     * 详细操作内容
     */
    private String cznrdetail;

    /**
     * 调用服务
     */
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name="FWPZ_ID")
    @NotFound(action= NotFoundAction.IGNORE)
    private Fwpz fwpz;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Yg getYh() {
        return yh;
    }

    public void setYh(Yg yh) {
        this.yh = yh;
    }

    public Date getCzrq() {
        return czrq;
    }

    public void setCzrq(Date czrq) {
        this.czrq = czrq;
    }

    public String getDlip() {
        return dlip;
    }

    public void setDlip(String dlip) {
        this.dlip = dlip;
    }

    public String getDlmac() {
        return dlmac;
    }

    public void setDlmac(String dlmac) {
        this.dlmac = dlmac;
    }

    public String getCznr() {
        return cznr;
    }

    public void setCznr(String cznr) {
        this.cznr = cznr;
    }

    public String getCznrdetail() {
        return cznrdetail;
    }

    public void setCznrdetail(String cznrdetail) {
        this.cznrdetail = cznrdetail;
    }

    public Fwpz getFwpz() {
        return fwpz;
    }

    public void setFwpz(Fwpz fwpz) {
        this.fwpz = fwpz;
    }
}
